package br.com.sampleProject.java;

import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;

import javax.enterprise.inject.Model;

import br.com.softplan.pd.zion.faces.impl.component.form.lookup.LookupContext;

@Model
public class SimulatorLookup {


	public Collection<String> lookup() {

		String typedText = LookupContext.getLookupValue();

		if (typedText.equals("a")) {
			return Arrays.asList("abc", "aaa", "ab");
		}

		if (typedText.equals("b")) {
			return Arrays.asList("bc", "ab");
		}

		if (typedText.equals("c")) {
			return Arrays.asList("bc");
		}

		return Collections.emptyList();
	}

}
